const {baseService2} =require('../../baseService2')
const model =require('../../../dao/model/model')





const {education_bean} =require('../../../beans/impl/education_bean/index')
const {education_model} =require('../../../dao/model/model')

/* 
1,修改导入的bean,和model,就是上面
2,把构造方法里的这些都改下

*/

/* 异常类 */
class education_serviceError extends Error {
    constructor(error,message='education_serviceError'){
        super()
        this.error = error
        this.message=message
        
    }
}


class education_service extends baseService2 {

    static ins = new education_service()

    constructor(){
        
        super(model.education_model,education_serviceError)
        
    }


    static getIns (){
        if(this.ins){
            return this.ins
        }else{
            return new education_service()
        }
    }


}







module.exports={education_service}
